package tw.com.com.log;

import java.util.Formatter;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import org.apache.log4j.Logger;

public class MyLog  {

	private Logger log;	


	

	protected MyLog(Class classTarget) {
		super();
		this.log = Logger.getLogger(classTarget);
	}



	public void debug(String fromat, Object... obs) {
		fromat.replaceAll("{}", "%s");
		log.debug(new Formatter().format(fromat, obs).toString());

	}
	
	
	
}
